Atum\Inc\Hooks D

Total Complexity 137
Dependencies 10
Dependents 3
Total lines 1,345
Lines of code 542
Logical lines of code 302
Comment lines 496
Methods 44
Properties 6

Methods 44

Method Rating Maintainability Complexity Lines of code
set_wc_products_list_stock_status()
A
40 15 55
duplicate_product()
A
41 11 52
maybe_change_out_stock_threshold()
S
53 6 22
wc_order_add_location_column_value()
S
55 6 20
save_order_items_props()
S
56 6 17
save_added_order_items_props()
S
57 6 16
add_to_cart_message()
S
53 5 18
record_out_of_stock_date()
S
58 5 16
rebuild_stock_status_on_oost_changes()
S
62 5 11
maybe_create_defer_update_async_action()
S
55 4 21
maybe_change_variation_stock_status()
S
58 4 16
register_global_hooks()
S
50 3 26
search_orders_by_sku()
S
52 3 26
enqueue_scripts()
S
50 3 25
update_atum_sales_calc_props_after_saving()
S
65 4 9
register_admin_hooks()
S
53 2 21
before_delete_order_item()
S
66 3 8
stock_quantity_input_atts()
S
70 3 6
get_instance()
S
70 3 6
plugin_row_meta()
S
59 2 12
stock_decimals()
S
61 2 11
before_delete_product()
S
68 2 7
get_simple_product_types()
S
71 2 6
save_variation_atum_data()
S
71 2 6
defer_update_atum_sales_calc_props()
S
71 2 6
prevent_item_stock_changing()
S
69 2 7
defer_update_atum_product_calc_props()
S
71 2 6
__construct()
S
73 2 6
maybe_save_order_items_props()
S
71 2 6
after_delete_order_item()
S
67 2 8
maybe_save_paid_date()
S
66 2 9
get_custom_out_stock_threshold()
S
79 2 3
round_stock_quantity()
S
67 2 8
set_dropdown_autocomplete()
S
70 2 6
wc_orders_min_qty()
S
62 1 14
check_stock_status_set()
S
81 1 3
remove_stock_status_threshold()
S
79 1 3
add_stock_status_threshold()
S
78 1 3
allow_product_caching()
S
80 1 3
delete_transients()
S
82 1 3
wc_order_add_location_column_header()
S
75 1 5
remove_order_comment()
S
75 1 4
__clone()
S
78 1 3
__sleep()
S
78 1 3